function deepClone(object) {
  let result = Array.isArray(object) ? [] : {};

  for (const key in object) {
    if (Object.hasOwnProperty.call(object, key)) {
      const element = object[key];

      if (typeof element === "object" && typeof element !== "null") {
        result[key] = deepClone(element);
      } else {
        result[key] = element;
      }
    }
  }

  return result;
}

function debounce(fn, time) {
  let timer;
  return function (...agrs) {
    if (timer) clearTimeout(timer);

    timer = setTimeout(() => {
      fn.apply(this, agrs);
    }, time);
  };
}

console.log("测试git");
